package com.service.lyxmservice.dao.behind;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface BehindDao {
	
	@Insert("INSERT INTO t_article (title,context,author_id,mp_id,module_id,description,target,cover_file_src) VALUE (#{title},#{context},#{authorId},11,#{moduleId},#{description},#{target},#{imgsrc})")                   
	public Integer insertArticle(@Param("title")String title,@Param("context")String context,@Param("authorId")String authorId,
			@Param("moduleId")String moduleId,@Param("description")String description,@Param("imgsrc")String imgsrc,@Param("target")String target);
	
	
	
	@Insert("INSERT INTO t_module (name,father_id) VALUE (#{moduleName},#{belongModuleId})")                   
	public Integer insertModule(@Param("moduleName")String moduleName,@Param("belongModuleId")String belongModuleId);
	
	
	
	@Insert("INSERT INTO t_author (name,file_src_p,real_name,introduction) VALUE (#{authorName},#{imgsrc},#{realName},#{introduction})")                   
	public Integer insertAuthor(@Param("authorName")String authorName,@Param("realName")String realName,@Param("introduction")String introduction,@Param("imgsrc")String imgsrc);
}
